<template>
	<h3>Child</h3>
	<p>{{title}}</p>
	<p>{{onEvent('传递数据')}}</p>
	<button @click="clickEventHandle">传递数据</button>
</template>
<script>
export default {
	data() {
		return {
			
		}
	},
	props: {
		title: String,
		onEvent:Function
	},
	methods: {
		clickEventHandle() {
			this.$emit("someEvent","Child数据")
		}
	},
	inject: ['message']
}
</script>